package com.sxd.service.service.impl;

import com.sxd.service.domain.User;
import com.sxd.service.service.UserClient;
import org.springframework.stereotype.Component;
/*
熔断降级类
 */
@Component
public class UserClientFallback implements UserClient {

    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setUserName("服务器繁忙，请稍后再试！");
        return user;
    }
}
